module.exports = (app) => {
  const express = require('express')
  const assert = require('http-assert')
  const router = express.Router()
  const auth = require('../../middleware/auth')
  const User = require('../../models/User')
  const Category = require('../../models/Category')
  const Video = require('../../models/Video')
  const Ad = require('../../models/Ad')

  app.post('/web/api/register', async (req, res) => {
    const user = await User.create(req.body)
    res.send(user)
  })
  app.post('/web/api/login', async (req, res) => {
    // 1.根据用户名查找用户
    const { username, password } = req.body
    const user = await User.findOne({ username }).select('+password')
    if (!user) {
      res.status(422).send({
        message: '用户不存在',
      })
    }
    // assert(user, 422, '用户不存在')
    // 2.校验密码
    const isValid = require('bcrypt').compareSync(password, user.password)
    if (!isValid) {
      res.status(422).send({
        message: '密码错误',
      })
    }
    // assert(isValid, 422, '密码错误')
    // 3.返回token
    const jwt = require('jsonwebtoken')
    const token = jwt.sign({ id: user._id }, app.get('secret'))
    res.send({ token })
  })

  // 获取用户信息
  router.get('/user', auth(), async (req, res) => {
    const user = req.user
    res.send(user)
  })

  // 获取分类信息
  router.get('/category', auth(), async (req, res) => {
    const model = await Category.find()
    res.send(model)
  })

  // 获取广告信息
  router.get('/ad', auth(), async (req, res) => {
    const model = await Ad.find()
    res.send(model)
  })

  // 获取视频信息
  router.get('/video', auth(), async (req, res) => {
    const model = await Video.aggregate([{ $sort: { playNum: -1 } }])
    res.send(model)
  })

  // 获取子分类信息
  router.get('/children/:id', auth(), async (req, res) => {
    let model = await Category.find({ parent: req.params.id })
    model.unshift({
      name: '推荐',
      parent: '5f5d8ef8939c1e8340954faf',
      _id: '5f5f6b1156d5677cb416528d',
    })
    res.send(model)
  })

  // 获取子分类视频
  router.get('/videos/:id', auth(), async (req, res) => {
    // 获取子分类
    const model = await Category.findOne({ _id: req.params.id }) //动漫
    // 随机视频
    const children = await Category.find({ parent: model._id })
    const chilrenCate = children.map((child) => {
      return child._id
    })
    const randomVideos = await Video.aggregate([
      { $match: { category: { $in: chilrenCate } } },
      { $sample: { size: 4 } },
    ])
    // 获取视频信息
    const videos = await Category.aggregate([
      { $match: { parent: model._id } },
      {
        $lookup: {
          from: 'videos',
          localField: '_id',
          foreignField: 'category',
          as: 'videoList',
        },
      },
    ])
    videos.unshift({
      name: '热门推荐',
      parent: model._id,
      _id: '5f5fssodjf6d5677cb416528d',
      videoList: randomVideos,
    })
    res.send(videos)
  })

  // 通过视频 id 获取详细的视频信息
  router.get('/video/:id', auth(), async (req, res) => {
    const model = await Video.findById(req.params.id)
    res.send(model)
  })

  // 通过视频 id 获取相关的视频信息
  router.get('/video/related/:id', auth(), async (req, res) => {
    const model = await Video.findById(req.params.id)
    const cate = model.category
    const result = await Video.aggregate([
      { $match: { category: cate } },
      { $match: { _id: { $ne: model._id } } },
      { $sample: { size: 10 } },
    ])
    res.send(result)
  })

  app.use('/web/api', router)

  // 测试
  app.get('/category/all', async (req, res) => {
    const model = await Category.aggregate([
      {
        $match: { parent },
      },
      {
        $lookup: {
          from: 'categories',
          localField: '_id',
          foreignField: 'parent',
          as: 'children',
        },
      },
      // {
      //   $lookup: {
      //     from: 'videos',
      //     localField: 'children._id',
      //     foreignField: 'category',
      //     as: 'video',
      //   },
      // },
    ])
    res.send(model)
  })

  // 初始化视频列表
  app.get('/video/init', async (req, res) => {
    // const rowData = [
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/0e95e7f1a27d5c85107ee529078082f3c0198a2f.jpg@480w_270h_1c',
    //     title: '【74C】还记得，那些年把我们听哭的《心做し》吗?',
    //     num: { play: ' 3.9万', danmu: ' 337' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/afa0201fe2b90fd0317296fdea18a08187fe43e6.jpg@480w_270h_1c',
    //     title: '双萌',
    //     num: { play: ' 1.8万', danmu: ' 3' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/5402e2884d290896be86e3c9f3e06329582f5599.jpg@480w_270h_1c',
    //     title: '人总是会死的  那么..你觉得人何时会死？',
    //     num: { play: ' 54万', danmu: ' 3071' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/f435f2a23bfaba4d3511dc5611041d35fc68488b.jpg@480w_270h_1c',
    //     title: '【文豪野犬|双黑】我靠着你，无所畏惧',
    //     num: { play: ' 5745', danmu: ' 71' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/6245d020146b74a8442b58b4b5a559414c28fbbc.jpg@480w_270h_1c',
    //     title: '我.....看你个小笨蛋就是想看这个！！',
    //     num: { play: ' 1.7万', danmu: ' 99' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/1eb19c70caac53fb5be98b36d78718fbc3c3a6bc.jpg@480w_270h_1c',
    //     title: '大概只有喜欢纯音乐的人才会被推送到吧',
    //     num: { play: ' 39.5万', danmu: ' 543' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/002d006196647af90ec62f1349bac76e89e009c5.jpg@480w_270h_1c',
    //     title: '【快新】【燃向】[A]ddiction .上瘾',
    //     num: { play: ' 149.8万', danmu: ' 1.2万' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/ecfcc7be78cc2a6d347203899a92cd6c489e088f.jpg@480w_270h_1c',
    //     title: '【火影忍者】用战斗来祭奠这个世界 ！！',
    //     num: { play: ' 1437.1万', danmu: ' 19.4万' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/4e2f181633b9678b4aa012aa2bfec6589be58601.jpg@480w_270h_1c',
    //     title: '火爆全网的《就算你活在二次元》，鬼知道我看了几遍！！',
    //     num: { play: ' 63万', danmu: ' 1150' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/55c33e6deb300cbecfbe8e4dbaebdc35643ff1a6.jpg@480w_270h_1c',
    //     title: '前方帅爆！让世界感受这巅峰战力吧！！！',
    //     num: { play: ' 80.1万', danmu: ' 1863' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/27cc38297f2abb732e6cb4d3414f641ecea5b621.jpg@480w_270h_1c',
    //     title: '[弹丸论破&踩点] 众所周知，绝望是一种高级的艺术~~~',
    //     num: { play: ' 2.8万', danmu: ' 79' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/d7a7a89a132216ef14952d6620179a691772a12a.jpg@480w_270h_1c',
    //     title: '【安室透美颜混剪】80s带你看百变小零的时尚衣橱',
    //     num: { play: ' 4.3万', danmu: ' 230' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/a4b4651b9f999799ee3907bed79dc33b209935fa.jpg@480w_270h_1c',
    //     title:
    //       '【静止系/电锯人】她如同一朵含苞待放的花蕾，也如一滩无可救药的烂泥',
    //     num: { play: ' 15.2万', danmu: ' 127' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/9db8cc8e1c6c92d1885c93d1715416a01e071de3.jpg@480w_270h_1c',
    //     title: '乔 鲁 诺 乔 巴 纳',
    //     num: { play: ' 19.1万', danmu: ' 622' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/56c884b436634703046a21811d61220454acbb3d.jpg@480w_270h_1c',
    //     title: '哼，已经委屈了！',
    //     num: { play: ' 140.5万', danmu: ' 1203' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/916f6629b1b26b44902703987165fd3bdc694255.jpg@480w_270h_1c',
    //     title:
    //       '「白鸟姬 神崎美月 月姬向」在夜空中绽放光芒的月亮，谁说月亮只可以有一个',
    //     num: { play: ' 1590', danmu: ' 1' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/83701d52bbd9289a648ed07a258b2aa84f639e48.jpg@480w_270h_1c',
    //     title: '可爱与沙雕在性感面前不堪一击！！',
    //     num: { play: ' 76万', danmu: ' 1250' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/04603423544ee9e289c403f7ac360272020c2a6d.jpg@480w_270h_1c',
    //     title: '火    影    学    前    班',
    //     num: { play: ' 2.1万', danmu: ' 60' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/16b086dcf8d4d7461c4853d2e6362b1abdc285e3.jpg@480w_270h_1c',
    //     title: '【進擊的巨人｜埃尔文史密斯】恶魔与神明',
    //     num: { play: ' 24.8万', danmu: ' 1390' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/f3b52728e3c3d3b19e42d250ffbf83153231a75a.jpg@480w_270h_1c',
    //     title: '【柯哀日/12H】以爱之名 你还愿意吗',
    //     num: { play: ' 4.8万', danmu: ' 966' },
    //   },
    // ]

    // const rowData = [
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/1df76e17a505b0768cc38896d3ae129f7f457983.jpg@480w_270h_1c',
    //     title: '拉菲和指挥官只是朋友而已',
    //     num: { play: ' 3584', danmu: ' 4' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/0cb54962a9b32d2f118da0fe70b06b51b9a83edb.jpg@480w_270h_1c',
    //     title: '【布料/弱音】我想你做我女朋友 我想和你约会',
    //     num: { play: ' 8.1万', danmu: ' 72' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/974e4231fa01b7c2d9c817c170830026897fae55.jpg@480w_270h_1c',
    //     title: '凑阿库娅 - LUVORATORRRRRY!',
    //     num: { play: ' 32.4万', danmu: ' 541' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/40c2935d668bee008ac200bfd8879ca0e9560f43.png@480w_270h_1c',
    //     title: '[SFM FNAF] 复仇 - REVENGE -（Song by Rezyon and ZombieWarsSM）',
    //     num: { play: ' 3651', danmu: ' 63' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/cbb4c7a0ce32ce9bdbc1ad05eff325533bd1f36e.png@480w_270h_1c',
    //     title: '【Maya】高级影视角色制作系列之真实毛发的创建与渲染中文教程',
    //     num: { play: ' 1.4万', danmu: ' 19' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/fd3b54432d9770382de5832af1654b6bb35c0142.jpg@480w_270h_1c',
    //     title: '【字幕付】龙胆尊的偶像歌回歌单',
    //     num: { play: ' 6421', danmu: ' 31' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/a9a04a3c86aa21b4f0d60431dd1a17f1e24fdf66.jpg@480w_270h_1c',
    //     title: 'TDA黑旗袍初音 - 千星绪',
    //     num: { play: ' 5.1万', danmu: ' 123' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/07a9c5bf9c1c2ca9b2f64ef9ba63f1ad54f63cab.jpg@480w_270h_1c',
    //     title: '【MMD】Tda式miku的Yeah Oh Ahhh Oh!【HAL×supercell】',
    //     num: { play: ' 3万', danmu: ' 448' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/77c53a654bbed94abbc84bd4a7968626bb004dba.jpg@480w_270h_1c',
    //     title: '【APH/MMD】联五 神的随波逐流',
    //     num: { play: ' 9万', danmu: ' 2072' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/354b248e97adba696ddb1dd4c12a6f8f732fe45d.jpg@480w_270h_1c',
    //     title: '【弱音MMD】接受弱音小姐姐给你的爱嘛-What is Love',
    //     num: { play: ' 1301', danmu: ' 0' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/97e37e4595c253fe9dd550d84fa60baaa7ddbd84.jpg@480w_270h_1c',
    //     title: '专业团队（指煮饭）',
    //     num: { play: ' 9550', danmu: ' 56' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/585a77fe64c1edae415e262d18f8316edf333d3e.jpg@480w_270h_1c',
    //     title: '[UNDERTALE ANIMATION] Underfilm - Shadow of the Fallen Child',
    //     num: { play: ' 9.1万', danmu: ' 727' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/0d0a750a53b1989e41b6bad263e99362e43b4d0a.jpg@480w_270h_1c',
    //     title:
    //       '来看4K 你老婆？？？  你老婆八重樱今日出道啦！！！！不来支持一下嘛~',
    //     num: { play: ' 5万', danmu: ' 66' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/44c3808df91321bcc7f07aa17ed1eed733159dfb.png@480w_270h_1c',
    //     title: '【生气了？】 所谓的傲娇就是这样吗？【没有哦♡】',
    //     num: { play: ' 85.8万', danmu: ' 4211' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/ce91d0bb844981d25a1a726df5444dd064b0cc66.jpg@480w_270h_1c',
    //     title: '【木叶男团】Dancin',
    //     num: { play: ' 4312', danmu: ' 37' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/ff0e42621333e4f44e9dbceb63b9bd9e5adfba75.jpg@480w_270h_1c',
    //     title: '【东方MMD】245话:早苗的奇迹（neet汉化）',
    //     num: { play: ' 1435', danmu: ' 8' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/f37b8ba2d990d4255ca8e01ffd5b32f51af7668f.jpg@480w_270h_1c',
    //     title: '崩坏3×JOJO/琪亚娜的奇妙冒险【OP还原】',
    //     num: { play: ' 164.7万', danmu: ' 2510' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/820bd97af03384c3743a5be568e8a0edaa67d853.jpg@480w_270h_1c',
    //     title: '【熟肉】完结了就很恐怖的百物语！【百物语#END】',
    //     num: { play: ' 2万', danmu: ' 1894' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/56c16b0cae8939bf65aae785d9545ef32dc94726.jpg@480w_270h_1c',
    //     title: '【MMD】Luka_-_勾指起誓___Gōu_zhǐ_qǐshì',
    //     num: { play: ' 525', danmu: ' 1' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/a2dd1a0d6cde040d0decdb3c489cc4537afb6d00.jpg@480w_270h_1c',
    //     title: '172CM超模系列【崩坏3-MMD】Worth It【大神犬PV付】',
    //     num: { play: ' 7.8万', danmu: ' 131' },
    //   },
    // ]

    // const rowData = [
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/bc24d376ef175f6c7f6f7fa2f3454e19f6568baa.jpg@480w_270h_1c',
    //     title: '歪  嘴  战  匪',
    //     num: { play: ' 20.5万', danmu: ' 499' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/5f83e9255f68ed21129ecf36879bacc028a5e794.jpg@480w_270h_1c',
    //     title: '皮卡丘：时代变了又变！（挥刀＋上膛',
    //     num: { play: ' 65.4万', danmu: ' 2545' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/33bc54b95cd827cbbdb84958a9f2378e784e2b78.jpg@480w_270h_1c',
    //     title: '【阴阳怪气手书】欢天喜地的DRRR！—无头ed',
    //     num: { play: ' 7.4万', danmu: ' 399' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/57e70fbc01ed2ec4e9305ebbf921f7a93ec6f698.jpg@480w_270h_1c',
    //     title: '【动画短片】Daystone 系列合集',
    //     num: { play: ' 10万', danmu: ' 413' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/d0b9dc1c25b00e012fc091e065550ce8da3fc4a5.jpg@480w_270h_1c',
    //     title: '如何回怼绿茶',
    //     num: { play: ' 180.1万', danmu: ' 2655' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/95fe60177fbbdac4f89a05dc2cea8ea7855e8c1a.jpg@480w_270h_1c',
    //     title: '【JOJO/荒木庄】BOSS组黑帮摇',
    //     num: { play: ' 150.8万', danmu: ' 1406' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/16d8e926604f10a92c4aa45f99839396fb752afa.jpg@480w_270h_1c',
    //     title: '【搬运手书/熟肉】掩耳盗铃 星街彗星',
    //     num: { play: ' 1.1万', danmu: ' 2' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/73925f8e7325b07c4cd39bef2eccd9172e858b0e.jpg@480w_270h_1c',
    //     title: '你根本不懂什么叫绿茶',
    //     num: { play: ' 280.9万', danmu: ' 8652' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/787ca8d6662a39bb11ec169b2a9b33d35eeb6431.jpg@480w_270h_1c',
    //     title: '乐高美食请您享用',
    //     num: { play: ' 423', danmu: ' 1' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/7e594fa15e3ab92a5eb61eb0cb56cdb18305a320.jpg@480w_270h_1c',
    //     title: '2020夏活怎么能没有泳装艾蕾呢！',
    //     num: { play: ' 1.9万', danmu: ' 24' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/df848915bbae31e98244f1165ac948aac0c4eed9.jpg@480w_270h_1c',
    //     title: '"我要露出一点马脚,好让你发现我喜欢你."',
    //     num: { play: ' 79.6万', danmu: ' 5143' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/6536dc05cdb1ffb61ccff481b3d960aed6a8885f.jpg@480w_270h_1c',
    //     title: '【朱亚文】被Dio扼住了喉咙！我太疼了！#甭正面#04',
    //     num: { play: ' 364万', danmu: ' 3.9万' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/be1fa85efb02cc534f7bc3e4c0f5e3e183872563.jpg@480w_270h_1c',
    //     title: '【阴阳怪气手书】一笑懸命',
    //     num: { play: ' 18.6万', danmu: ' 1656' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/c31b21d4ac20c9d10f9ee3cd44c87e7e2723681d.jpg@480w_270h_1c',
    //     title:
    //       '【地缚少年花子君（全彩）手书】跟普/司/光一起做巧克力吧(๑°3°๑)片尾小彩蛋（柚木老师）',
    //     num: { play: ' 42.6万', danmu: ' 3666' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/df29dddbccca812a6384b368a04ce2cfff912c93.jpg@480w_270h_1c',
    //     title: '【花少北/生贺手书】花老师生日快乐！',
    //     num: { play: ' 9.7万', danmu: ' 1294' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/1f7ec6a2ae5d00f0ed92185e52b31f6200e6efea.jpg@480w_270h_1c',
    //     title:
    //       '【大理寺日志手书/填词翻唱】大狸子的随波逐流（洛天依 乐正绫 言和 feat.Vsinger全员）',
    //     num: { play: ' 1.6万', danmu: ' 230' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/47cf235f151832d0339de1391295882ae5ef064c.jpg@480w_270h_1c',
    //     title: 'Dame Dane~如何回怼受害者有罪论！！',
    //     num: { play: ' 25.2万', danmu: ' 1832' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/09cb835a09b5d123ae9503e77d9d37c7c9700aa9.jpg@480w_270h_1c',
    //     title: '【188男团手书】五十度Flesh',
    //     num: { play: ' 95.2万', danmu: ' 3.3万' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/7ed8d6802273b51533de7b09f65efef69089f7d9.jpg@480w_270h_1c',
    //     title: '【乌龙】&【煎饼】的小往事',
    //     num: { play: ' 5.4万', danmu: ' 397' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/88feb478900af57f54e29c90d557ad373ffdf3df.jpg@480w_270h_1c',
    //     title: '【鬼灭/全员生还向】赎罪的救世主与鬼之塔 （同人动画）',
    //     num: { play: ' 35.4万', danmu: ' 2190' },
    //   },
    // ]

    // const rowData = [
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/e4de2f96dc91f224f125b62a4b64908dcbf55edd.jpg@480w_270h_1c',
    //     title: '来福的模玩简评-第277集 绝创MTST01 变4钢锁',
    //     num: { play: ' 6497', danmu: ' 252' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/ab6d7e92f130652b8e4b61624cc1c5c3361a2493.jpg@480w_270h_1c',
    //     title: '【臻欣】原来变玩圈这么纯洁，韩国托宝兄弟变形玩具',
    //     num: { play: ' 7542', danmu: ' 126' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/d0aa626ba46e8023a8acee9455db01af7757574f.jpg@480w_270h_1c',
    //     title: '【手办评测】这个加藤惠又双叒叕能脱？？？转身惠 GSC',
    //     num: { play: ' 1万', danmu: ' 41' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/16faa191c45d68b08d354d76c91806e75a30d4d4.jpg@480w_270h_1c',
    //     title:
    //       '【测评】男人至死是少年！最燃不过大天元！突破天际的CCS铁魄红莲螺岩！',
    //     num: { play: ' 3.6万', danmu: ' 329' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/2547dd830dd86404bb94df47fa8630e705b37b0e.jpg@480w_270h_1c',
    //     title: '拼多多49块钱的随机手办就这？正版不香还是怎么的？',
    //     num: { play: ' 5002', danmu: ' 9' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/245f1a01071e9ba9bde4b00d6399408bdf162c65.jpg@480w_270h_1c',
    //     title: '乐高8043，史上升值最快的挖掘机，投资理财的好产品',
    //     num: { play: ' 89', danmu: ' 3' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/f0e80197cfd3ededc1e40a2d7e08d66ad0aec898.jpg@480w_270h_1c',
    //     title:
    //       '【RAY】向大神进阶！第11期，模型喷涂工具的选择【RAY的高达模型课堂】',
    //     num: { play: ' 21.4万', danmu: ' 1042' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/8357747cf67d645e1af74f430cf9bec912db8730.jpg@480w_270h_1c',
    //     title: '你需要知道的实体娃娃小知识（一）',
    //     num: { play: ' 3.7万', danmu: ' 15' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/23ac83c6bdeef584795dfdbe183b5cc578d631ae.jpg@480w_270h_1c',
    //     title: '把2.1米高的贝吉塔手办放家里是什么体验-刘哥模玩',
    //     num: { play: ' 6.6万', danmu: ' 1229' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/e012b7ee7ed1c737e0612b2e5ad2a142c3f9d1f7.jpg@480w_270h_1c',
    //     title: 'DCP入坑小结 我最爱的肯沃斯 w990颜值真是逆天',
    //     num: { play: ' 139', danmu: ' 1' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/d0f6aff0a87edd374e09ed8dd2f70a08ed1755c6.jpg@480w_270h_1c',
    //     title: '【鸣工坊】巴巴托斯天狼座-水性漆战损旧化涂装！不要停下来啊！',
    //     num: { play: ' 8.9万', danmu: ' 379' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/3afadd6d7b2843dcb71cd2c4e0a5fd73435561c0.jpg@480w_270h_1c',
    //     title:
    //       '【T T 开箱】速拆！ MH Precious G.E.M 数码宝贝 数码暴龙 皇家十三骑士 究极V龙兽',
    //     num: { play: ' 7298', danmu: ' 20' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/97a4575f400a793dfdeb8666a51ee434a2d25d44.jpg@480w_270h_1c',
    //     title: '四个适合模型新手的掉漆（chipping）技巧',
    //     num: { play: ' 4.7万', danmu: ' 328' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/13f7ba768c98a6da8db33cb711a58686e72f3927.jpg@480w_270h_1c',
    //     title: '传说中玩了会饿的玩具？魔性美食之河豚拼图【MegaHouse】',
    //     num: { play: ' 11.7万', danmu: ' 590' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/87641d27d3dea2048f18e15f34660dc6a25c1de2.jpg@480w_270h_1c',
    //     title: '两个配件包=解体匠机牛高达? 双重浮游炮配件包拆盒!【开盒拆拆拆】',
    //     num: { play: ' 25万', danmu: ' 1300' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/abe5b1a88758f90ae8a24be37f584d2c6d3b932f.jpg@480w_270h_1c',
    //     title:
    //       '【拆盲盒】#OOTB#Dimoo社会大学新品优享来啦～我最喜欢的竟然是他…？泡泡玛特',
    //     num: { play: ' 6846', danmu: ' 235' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/25da0ceabf3e8d4bf2b2a0830ff36283b051f037.jpg@480w_270h_1c',
    //     title:
    //       '【笔涂分享】预算50带你走进手涂模型的世界！酋长大陆sm漆+贝碧欧丙烯+普通丙烯方案',
    //     num: { play: ' 4.1万', danmu: ' 283' },
    //   },
    //   {
    //     src:
    //       'https://i2.hdslb.com/bfs/archive/77e049c5352173db28c2c503e567571a1da16652.jpg@480w_270h_1c',
    //     title: '超时空要塞Macross7移民船模型制作视频 2.0版',
    //     num: { play: ' 4021', danmu: ' 49' },
    //   },
    //   {
    //     src:
    //       'https://i0.hdslb.com/bfs/archive/20e9cbb59e28b0cfce5a526d28b4d565d37d16c6.jpg@480w_270h_1c',
    //     title: '【圣衣神话】ex水瓶座黄金圣斗士卡妙，冰之魔法师',
    //     num: { play: ' 793', danmu: ' 3' },
    //   },
    //   {
    //     src:
    //       'https://i1.hdslb.com/bfs/archive/8bebcab37fd8e8b1d41137ff7c39b279173e1ab1.jpg@480w_270h_1c',
    //     title:
    //       '我的第一台钢普拉！13年前最浪漫的高达机体！HG观星者高达【JakeToys】',
    //     num: { play: ' 8.4万', danmu: ' 3610' },
    //   },
    // ]

    // const rowData = [
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/fbfe226a716ea77613fa86b5d4e45fc82d86eb4b.jpg@480w_270h_1c',
    //   title: '【奥特银河格斗第二季】我tm才是主角！',
    //   num: { play: ' 4.3万', danmu: ' 166' },
    // },
    // {
    //   src:
    //     'https://i0.hdslb.com/bfs/archive/7b8f230529e468c02bd3d87027ec4f28e4e72995.jpg@480w_270h_1c',
    //   title: '【超清】爱迪奥特曼 技能大百科—昭和全能王',
    //   num: { play: ' 24.1万', danmu: ' 1868' },
    // },
    // {
    //   src:
    //     'https://i0.hdslb.com/bfs/archive/464a3e9ce6044cac94fa2828455a4f54457252d8.jpg@480w_270h_1c',
    //   title: '【HDR/60帧/1080P画质】铠甲勇士帝皇侠MV 『涅槃重生 帝皇再临』',
    //   num: { play: ' 3.9万', danmu: ' 331' },
    // },
    // {
    //   src:
    //     'https://i0.hdslb.com/bfs/archive/833053a16eb5313973401d3b143a88e4718a1814.jpg@480w_270h_1c',
    //   title: '追了大半年，主角还不如一条狗。《假面骑士01》吐槽',
    //   num: { play: ' 63.6万', danmu: ' 1746' },
    // },
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/0e7b99a2e431efe30f8805fffd817863a8e99fdf.jpg@480w_270h_1c',
    //   title:
    //     '戴拿：迪迦，你说那群孩子长大之后还会回来看我们吗？迪迦：会的，他们不会忘记我们的',
    //   num: { play: ' 1.6万', danmu: ' 44' },
    // },
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/8476b2a97e5a1909735a11370d486c562c0e950a.jpg@480w_270h_1c',
    //   title: '盘点三大铠甲系列最终BOSS之战',
    //   num: { play: ' 458', danmu: ' 2' },
    // },
    // {
    //   src:
    //     'https://i0.hdslb.com/bfs/archive/8157f4637b4136bf09fb8588e94b98194efe08bb.jpg@480w_270h_1c',
    //   title: '【1080P】【渡部秀X三浦凉介】 - Time Judged All - 【中字】',
    //   num: { play: ' 9132', danmu: ' 19' },
    // },
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/006545223f4932b35cc14c55597b35b648f2e7b1.jpg@480w_270h_1c',
    //   title: '《赛迦奥特曼》片尾彩蛋，时隔15年飞鸟最后一次看望良。',
    //   num: { play: ' 14.5万', danmu: ' 382' },
    // },
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/9c5c9a50b9a1c832adc62659576c1f70b6741ab5.jpg@480w_270h_1c',
    //   title: '平成假面骑士在日本的评价如何？(2000-2019)',
    //   num: { play: ' 2.7万', danmu: ' 1045' },
    // },
    // {
    //   src:
    //     'https://i1.hdslb.com/bfs/archive/b70406564122ca556668ed4faf8074b206a6d6e3.jpg@480w_270h_1c',
    //   title: '无   缝   剪   辑',
    //   num: { play: ' 21万', danmu: ' 704' },
    // },
    // {"src":"https://i1.hdslb.com/bfs/archive/005502de77febac6131facd7b18097e72c8b0271.jpg@480w_270h_1c","title":"【爱迪】教师节快乐！矢的猛老师感人瞬间","num":{"play":" 6585","danmu":" 32"}},{"src":"https://i2.hdslb.com/bfs/archive/2e5070279508d23ce4e4811bbc8ff46caf7333d7.jpg@480w_270h_1c","title":"每多一个播放量，就多一个人想起矢的猛老师","num":{"play":" 8.5万","danmu":" 894"}},{"src":"https://i2.hdslb.com/bfs/archive/e56b2c87fd0e7bf0b81898f6e325d429ec730c6e.jpg@480w_270h_1c","title":"初代奥特曼是真的皮！","num":{"play":" 23.2万","danmu":" 1427"}},{"src":"https://i2.hdslb.com/bfs/archive/e815ec4e0c7e050e87277b1fadbda802fc62eab8.jpg@480w_270h_1c","title":"杰顿娘☆awsl","num":{"play":" 629","danmu":" 18"}},{"src":"https://i2.hdslb.com/bfs/archive/e74d3e1da7fe6eced00a4b8ae5431dc592644913.jpg@480w_270h_1c","title":"【误解向/沙雕配音】《逢魔反抗军·前传》来看看牺牲的Boss生前的故事！","num":{"play":" 12.3万","danmu":" 440"}},{"src":"https://i2.hdslb.com/bfs/archive/e815ec4e0c7e050e87277b1fadbda802fc62eab8.jpg@480w_270h_1c","title":"杰顿娘☆awsl","num":{"play":" 629","danmu":" 18"}},{"src":"https://i2.hdslb.com/bfs/archive/e74d3e1da7fe6eced00a4b8ae5431dc592644913.jpg@480w_270h_1c","title":"【误解向/沙雕配音】《逢魔反抗军·前传》来看看牺牲的Boss生前的故事！","num":{"play":" 12.3万","danmu":" 440"}},{"src":"https://i2.hdslb.com/bfs/archive/7cf1c4c4ddf6c7616e02007821713835383e88a2.jpg@480w_270h_1c","title":"假面骑士原型介绍【1号到Zi-O】【昭和-平成】","num":{"play":" 75.6万","danmu":" 2.2万"}},{"src":"https://i0.hdslb.com/bfs/archive/60b9d766f49016538987335b59956f0e55a49159.jpg@480w_270h_1c","title":"【铠甲勇士刑天】巴鲁:没人 比我 更懂得 欺软怕硬和卖队友（幽冥魔战士之耻）","num":{"play":" 1.4万","danmu":" 97"}},{"src":"https://i1.hdslb.com/bfs/archive/0b3d59b1696aeaa7956eefd233335ff9a056ab58.jpg@480w_270h_1c","title":"【1080P修复】奥特赛文--《飞在天上的大铁块》克鲁星人、加洛星人、宇宙机器人大铁块登场","num":{"play":" 1.7万","danmu":" 126"}}
    // ]

    const rowData = [
      {
        src:
          'https://i0.hdslb.com/bfs/archive/e4510c756c36ff0430ce2645d75661c925088519.jpg@480w_270h_1c',
        title: '【JOJO/eveonecat】JOJO亲子',
        num: { play: ' 45.1万', danmu: ' 209' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/b6c1ef1131e0402dc00041279cd59a2077579d3d.jpg@480w_270h_1c',
        title: '【搬运】被姐街的颜值吓了一跳的阿夸',
        num: { play: ' 8467', danmu: ' 25' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/cb729b507edeaedba07f7663042e8077b8f6d851.jpg@480w_270h_1c',
        title: '不要用钱试探蟹老板',
        num: { play: ' 6.8万', danmu: ' 28' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/f3a45c13fb7b8675eeb5dd09f7079a771356b3e1.jpg@480w_270h_1c',
        title: '一分钟看完！宇智波带土忍术！',
        num: { play: ' 7826', danmu: ' 28' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/04c4622b63d47faead8042de893bc247570686e4.jpg@480w_270h_1c',
        title: '动画区的巅峰神作是什么样的？【阅片无数特别篇】',
        num: { play: ' 575.6万', danmu: ' 2.6万' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/34cb67c58de85664872a4fccfd22ab6401153d9b.jpg@480w_270h_1c',
        title: '关于妹妹知道自己有嫂子这档事！',
        num: { play: ' 9.4万', danmu: ' 353' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/d7b89bb347861bf0282e99668da272ac5dfef545.jpg@480w_270h_1c',
        title: '二次元接吻合集  满满的爱意（单身狗慎入）',
        num: { play: ' 66.9万', danmu: ' 3450' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/a0b0e81ae0ef682fcaeb8fdb8bf93c4438d651e5.jpg@480w_270h_1c',
        title: '燃烧经费/视觉巅峰！4分钟20部动画高能！！！',
        num: { play: ' 138.5万', danmu: ' 6591' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/52fcd4a63e583e765f7b9f42f55ca4ab85269f15.jpg@480w_270h_1c',
        title: '工作工作工作！zzz',
        num: { play: ' 1.1万', danmu: ' 4' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/5c970f66527f868b95eb3c4f1a4f0bd55df58d61.jpg@480w_270h_1c',
        title:
          '拥有占卜潜质的人是谁呢？！Big God M·I·O·N的学徒选拔会！！！【占卜学徒选拔会】',
        num: { play: ' 9817', danmu: ' 302' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/5c970f66527f868b95eb3c4f1a4f0bd55df58d61.jpg@480w_270h_1c',
        title:
          '拥有占卜潜质的人是谁呢？！Big God M·I·O·N的学徒选拔会！！！【占卜学徒选拔会】',
        num: { play: ' 9817', danmu: ' 302' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/566fd16b1f0eae9e8c3a04a4d8a6386acee6ca87.png@480w_270h_1c',
        title: '【东亚醋王】后宫上位女主吃醋，修罗场太可怕了',
        num: { play: ' 2.5万', danmu: ' 38' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/5ba859334e62512b5627c6cbfa44109f626d63ad.jpg@480w_270h_1c',
        title: '谢谢各位姐姐',
        num: { play: ' 7537', danmu: ' 21' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/888accdc0c8b3378cd039c482d925bc38511c89f.jpg@480w_270h_1c',
        title: '【MLP同人·4K】群茧摇一摇之影流之茧',
        num: { play: ' 12.1万', danmu: ' 411' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/7cd84e174b3b879fd8fa63da748afc3b35be4b29.jpg@480w_270h_1c',
        title: '遥远道路的前方  日文字幕 犬夜叉 第三期',
        num: { play: ' 655', danmu: ' 1' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/e4510c756c36ff0430ce2645d75661c925088519.jpg@480w_270h_1c',
        title: '【JOJO/eveonecat】JOJO亲子',
        num: { play: ' 45.1万', danmu: ' 209' },
      },
      {
        src:
          'https://i2.hdslb.com/bfs/archive/b6c1ef1131e0402dc00041279cd59a2077579d3d.jpg@480w_270h_1c',
        title: '【搬运】被姐街的颜值吓了一跳的阿夸',
        num: { play: ' 8467', danmu: ' 25' },
      },
      {
        src:
          'https://i1.hdslb.com/bfs/archive/cb729b507edeaedba07f7663042e8077b8f6d851.jpg@480w_270h_1c',
        title: '不要用钱试探蟹老板',
        num: { play: ' 6.8万', danmu: ' 28' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/f3a45c13fb7b8675eeb5dd09f7079a771356b3e1.jpg@480w_270h_1c',
        title: '一分钟看完！宇智波带土忍术！',
        num: { play: ' 7826', danmu: ' 28' },
      },
      {
        src:
          'https://i0.hdslb.com/bfs/archive/04c4622b63d47faead8042de893bc247570686e4.jpg@480w_270h_1c',
        title: '动画区的巅峰神作是什么样的？【阅片无数特别篇】',
        num: { play: ' 575.6万', danmu: ' 2.6万' },
      },
    ]

    // const videoImgData = [
    //   'https://puui.qpic.cn/vpic/0/q3150qxfv9m.png/0',
    //   'https://itea-cdn.qq.com/file/tgl/2020091010/d929e8f16c027f4bc25f32e61a9329fd.1599732944.ae94002c91f0c46b1d2704f60be53c3d.184x124_12135.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020090412/7e39f90815d0cbca3fcb1178fb9fa803.1599224062.a826283ab2f322c0806f9a7ba5598cde.1280x720_239742.jpg',
    //   'https://puui.qpic.cn/vpic/0/i31478g070j.png/0',
    //   'https://itea-cdn.qq.com/file/tgl/2020090511/2bb225f0ba9a58930757a868ed57d9a3.1599304734.434fc7953086c6086aaea26ff5b7f2c1.230x140_59247.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/53bd12781f22be6ae8bf2fcb751816bc1598703215/0/',
    //   'https://shp.qpic.cn/cfwebcap/0/26319472aa5fc2c5c1bc0c159a8a9bd0/0/?width=230&height=140',
    //   'https://puui.qpic.cn/vpic/0/n31430eno2h.png/0',
    //   'https://img.crawler.qq.com/lolwebvideo/0/885eaf4adf3cf81507d15076895a635e1598634427/0/',
    //   'https://itea-cdn.qq.com/file/tgl/2020082811/c4ca4238a0b923820dcc509a6f75849b.1598613021.515c833908b329dbab869d6a380ba864.230x140_65521.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020082609/9bbb09b3df153c9f9a343edcef44a768.1598432925.dd837894a782c5f6ed3f9ca5682acb8d.230x140_58705.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020082123/d6aa98398d49a3cd42996090e3467571.1598022971.ffa5c5372a84bdefae3cc5ff48dc2538.230x140_53849.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020082221/d6aa98398d49a3cd42996090e3467571.1598102565.f59ff7e70341aea034175a1fcfd329a8.230x140_54643.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020082209/d6aa98398d49a3cd42996090e3467571.1598060145.7a924320fd8d7cba19caf03ccf42bfe3.230x140_46056.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020082209/c4ca4238a0b923820dcc509a6f75849b.1598058358.ab70be34a5b4c8195b6081a9f7fd8497.230x140_56507.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/d445d1b80ed6739cebba55530b9ee71a1598097299/0/',
    //   'https://shp.qpic.cn/cfwebcap/0/eb85a4b6bf985028a45f38749f2dde05/0/?width=230&height=140',
    //   'https://itea-cdn.qq.com/file/tgl/2020082118/d6aa98398d49a3cd42996090e3467571.1598004665.5b399331a5dc4233d2ac5803385c30e1.230x140_49352.jpg',
    //   'https://puui.qpic.cn/vpic/0/m3139iijb1j.png/0',
    //   'https://itea-cdn.qq.com/file/tgl/2020082016/a8f73a12cdddf0f835c47d97c73a52de.1597913312.381eb7184d982d4462d5c28ef6e2ab31.230x140_12947.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081917/d6aa98398d49a3cd42996090e3467571.1597830658.80efbc4455ac9bab2977b6ae04d8a2b5.230x140_55396.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081917/d6aa98398d49a3cd42996090e3467571.1597829088.78b2dd6e912cd6577c61475c23e5174f.230x140_47397.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081811/a8f73a12cdddf0f835c47d97c73a52de.1597722588.f347534ecc3085c604bd743291ab3db6.230x140_34268.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081816/d6aa98398d49a3cd42996090e3467571.1597740796.fe34567c86bc2dd07bb537488a2aebfe.230x140_59250.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081817/d6aa98398d49a3cd42996090e3467571.1597744011.520cd5e874a2b1911f230931ef083f7b.230x140_55396.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081717/d6aa98398d49a3cd42996090e3467571.1597654911.2faa8f737ef847df817057656b1ea947.230x140_56220.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081717/d6aa98398d49a3cd42996090e3467571.1597656294.f3fbf11f2246666c066d1d8ffb92db3b.230x140_56130.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081718/d6aa98398d49a3cd42996090e3467571.1597660090.90c0be35e36e34f45fc99876edd87c08.230x140_47320.jpg',
    //   'https://shp.qpic.cn/cfwebcap/0/61ff52da99f19e751fa22be9eeac2369/0/?width=230&height=140',
    //   'https://itea-cdn.qq.com/file/tgl/2020081413/6b367900eda3810b8997b6a025cc95df.1597383870.2773688b63796663dcca43f061a179c6.230x140_9444.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/885eaf4adf3cf81507d15076895a635e1598634427/0/',
    //   'https://itea-cdn.qq.com/file/tgl/2020080517/de056f266b06e65f703f93c2e787acff.1596618173.4ada12a0c7421d4c08b05fac486d85bf.1280x720_386725.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/394d5a3bdf8beca80adea69acb315e661596037447/0/',
    //   'https://img.crawler.qq.com/lolwebvideo/0/2dc6ec8a11fe987eea81d915db5fb20d1595430985/0/',
    //   'https://itea-cdn.qq.com/file/tgl/2020071516/de056f266b06e65f703f93c2e787acff.1594800569.7082dfe8fdb3f0edb8c2cf24faeb029f.1280x720_675698.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020070819/de056f266b06e65f703f93c2e787acff.1594207413.9257b40d3b194e2e8624e5fc59630354.1280x720_871634.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/c9c88b439fc7dbf1c2a871938705b9d61593611388/0/',
    //   'https://itea-cdn.qq.com/file/tgl/2020062413/de056f266b06e65f703f93c2e787acff.1592978028.4c9c3e9198413627d01e375c2d6fae38.1280x720_610529.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020061713/de056f266b06e65f703f93c2e787acff.1592370735.4ea83a04a1f25e0cdf6381cf8e3dcc40.1280x720_306345.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020052814/67986296f7ae80abb72234896a852dbc.1590647544.d9d669118bce197c4d303e2f08f29741.1280x720_265273.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020081413/6b367900eda3810b8997b6a025cc95df.1597383870.2773688b63796663dcca43f061a179c6.230x140_9444.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020080718/6b367900eda3810b8997b6a025cc95df.1596794765.3a4501e108a3400d2726c95ff9ffea20.230x140_9810.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020080100/6b367900eda3810b8997b6a025cc95df.1596211767.52909da9c28b8f39f53e3fc112e96046.230x140_8661.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020072416/6b367900eda3810b8997b6a025cc95df.1595578486.e3bff0b6575ca88d31d13deb041254df.230x140_10038.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020071713/6b367900eda3810b8997b6a025cc95df.1594965201.d18a8ac334c52dd734d1287fa9aa01a7.230x140_8745.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020071020/6b367900eda3810b8997b6a025cc95df.1594383223.7910d7474ba0178f13e5ce566882187a.230x140_9389.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020070415/6b367900eda3810b8997b6a025cc95df.1593847063.0bacd82107bb1621e8f75dde559ed921.230x140_52467.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020062719/f9cc3a78b7bc978a5aa341dba539a63b.1593257679.58a7efecc9697d91a471d68fa5753be8.230x140_17860.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020062422/6b367900eda3810b8997b6a025cc95df.1593008938.81cc7853cd25fc1349012840a5bb77ac.230x140_49149.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020060518/6b367900eda3810b8997b6a025cc95df.1591352284.800bda9d7abe233fefa2d3a52e6099bb.230x140_44641.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020070911/a8f73a12cdddf0f835c47d97c73a52de.1594264026.3bf8cae82cd6689e44eec5a6b308e135.230x140_13801.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020060411/a8f73a12cdddf0f835c47d97c73a52de.1591239870.aa61d16664156cfa0d395166122473d9.230x140_14135.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020040920/a8f73a12cdddf0f835c47d97c73a52de.1586434826.7200fd2079d58560f350dd90d09b658e.230x140_12291.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020032618/a8f73a12cdddf0f835c47d97c73a52de.1585217510.0eb472c11e85223c8a70c6078160a17a.230x140_13919.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020031616/a8f73a12cdddf0f835c47d97c73a52de.1584348098.1e6084c169d5a6dad48c22fdc64cfe60.230x140_12540.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200303/45faf139868734eddd63331a3a110447.1583239564.e122bc83472c0c88f48dc3548c03a167.184x124_13699.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191216/a8f73a12cdddf0f835c47d97c73a52de.1576488184.5bce8dda370c1f03743aa648954eb69c.230x140_15499.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191209/a8f73a12cdddf0f835c47d97c73a52de.1575890447.77fbf61dcc2185d60fd6c394835c708c.230x140_15367.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191203/a8f73a12cdddf0f835c47d97c73a52de.1575342538.41b272d8f476a45a1ac4f66f0dcc70e5.230x140_16463.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191125/a8f73a12cdddf0f835c47d97c73a52de.1574693984.1e761ae18bd6825603174d2b37a3fb07.230x140_15396.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200204/a8f73a12cdddf0f835c47d97c73a52de.1580795646.85816e04c85c3023518bfed45c35f444.230x140_14930.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200117/a8f73a12cdddf0f835c47d97c73a52de.1579246554.4d5f6fa18f0f194e4f8b533fa9190a46.230x140_13345.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200103/a8f73a12cdddf0f835c47d97c73a52de.1578039982.46d75f0e923b6529bf11f99774b615a2.230x140_14285.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191228/a8f73a12cdddf0f835c47d97c73a52de.1577470622.b01d2d0f5a2140b30fcd49f76400e637.230x140_13681.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191220/a8f73a12cdddf0f835c47d97c73a52de.1576839603.d4c375148133d019b588cc6ea6a02f40.230x140_13870.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20191204/35cd42a33d480f9db8e5b863004187a9.1575443268.2e474120d41114323a764f0091192a8c.900x500_279479.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20190929/45faf139868734eddd63331a3a110447.1569730425.c109fa03617fd00bcd0379c6983d09a1.184x124_6548.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20190908/a8f73a12cdddf0f835c47d97c73a52de.1567948346.db93443eaf887dcce1bb26a1bf968b22.230x140_7959.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020071312/a8f73a12cdddf0f835c47d97c73a52de.1594613383.7d4f3d158ec2cc5d4385b68d9e4e3de3.230x140_14272.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020070617/a8f73a12cdddf0f835c47d97c73a52de.1594028624.73de0e94d723c8ee5900179bf5448716.230x140_13260.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020062914/a8f73a12cdddf0f835c47d97c73a52de.1593413465.94a095af94451349af4cb11e1563e830.230x140_12495.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020062218/a8f73a12cdddf0f835c47d97c73a52de.1592822304.719834e89777797d759dc17be3d55726.230x140_13852.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020061510/a8f73a12cdddf0f835c47d97c73a52de.1592188633.15e72c082819a0786ed173da018bbb04.230x140_13164.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020060822/a8f73a12cdddf0f835c47d97c73a52de.1591627089.8fc390b03dd395cf562dbf02e655fdfc.230x140_15131.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020060121/a8f73a12cdddf0f835c47d97c73a52de.1591018192.1b6da129cd2acd1c9c7c8980ff3bf0bf.230x140_14273.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020052715/a8f73a12cdddf0f835c47d97c73a52de.1590565688.0292b29ada359ae0c7e8a1aa19381339.230x140_13061.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020052010/a8f73a12cdddf0f835c47d97c73a52de.1589943240.6aa3985fd719f8742c82d2791607e2cd.230x140_13684.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020051015/a8f73a12cdddf0f835c47d97c73a52de.1589097199.8ea23f14269cb86ad479fde3914ef73a.230x140_12492.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020041319/b09d2c99b2bd3b067281856c094b6713.1586779135.5e2dddaca7227df8db48a175455540b1.960x600_63253.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020040813/435c517fbfb9af22fe0f2fd7593268a1.1586324648.b423b0edff238206b30c1250637d6ca6.900x500_56981.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/2020033017/b09d2c99b2bd3b067281856c094b6713.1585560026.147edf285301bfce691f343282f89e50.960x600_63476.jpg',
    //   'https://img.crawler.qq.com/lolwebvideo/0/109b2f2abb34a01864ea089b8ad153f91584964787/0/',
    //   'https://itea-cdn.qq.com/file/tgl/2020031915/b09d2c99b2bd3b067281856c094b6713.1584602194.40547a0f1fe763b0d6ab887750fbed25.960x600_63581.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200309/b09d2c99b2bd3b067281856c094b6713.1583750658.02f6ac8a440b193c3132712315e9a31e.960x600_62360.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200302/b09d2c99b2bd3b067281856c094b6713.1583142421.5a172cf92c175e9017c24b37080d2c90.960x600_66701.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200224/b09d2c99b2bd3b067281856c094b6713.1582537815.bd4c73e8a93592b482683d5915e6cb25.960x600_64110.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200211/19cbb7c106be7fc2874c81098730f257.1581388459.fc4dbae8ce71bd5fbe4325186b978764.960x540_57964.jpg',
    //   'https://itea-cdn.qq.com/file/tgl/20200125/b09d2c99b2bd3b067281856c094b6713.1579932428.a0bd36ff08d7a597c59d8c3a796886b6.960x600_66296.jpg',
    // ]

    const videoImgData = [
      'http://itea-cdn.qq.com/file/tgl/20190523/e118b3127d93d985132e4630289959a8.1558578266.4f001b1e25d2dd04011305c9dae51dd5.230x140_34980.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190521/a8f73a12cdddf0f835c47d97c73a52de.1558428659.c2e78612635f5e02aabe3c3352710ae7.230x140_42036.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190520/a8f73a12cdddf0f835c47d97c73a52de.1558347844.3a5820dad828eabdc67db920d6e517f9.230x140_44553.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190520/2d7fed68000eff666c462a58049ad4f9.1558331360.c9bf815e8ed097ca24afb46033cc09a9.230x140_44518.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190522/5d74fde5f5a06b1da7255876d8db04e9.1558496934.569b6efdb20380aa0baa7f8dce473838.230x140_62351.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190521/a3b9ea2b13e119799a1bba93dc9be42b.1558424176.d4dc4da35746ab2d7cdb502541679fd9.686x385_27216.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190520/93472c4c2d5cee682febab5b68f03efe.1558365846.a80d9546a522647100ffcab1dc2502cf.230x140_17479.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190517/a8f73a12cdddf0f835c47d97c73a52de.1558078484.6934c5299bbb8b322615e80e1713b239.230x140_45562.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190518/5d518828ff221e17893fa8ebbb65a39e.1558177023.3551062b599e524e5511bd3806c2a6db.230x140_44488.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190518/a8f73a12cdddf0f835c47d97c73a52de.1558160678.d6ee0278a03314002a285e7630c47fd8.230x140_21601.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190515/19cbb7c106be7fc2874c81098730f257.1557929270.4ec457614a933695c83f51beb2a659fa.960x540_416236.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190516/3d8f20bcdd5905a086795b99b523b2a1.1558007821.57c05f29375c2ff6ae65bb8230c1e132.750x422_23737.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190516/0b59e1d97f3186d2407b1eb76c900b6e.1558018232.2f7d2c59d0911acd065ac0403882ed07.230x140_21196.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190512/a8f73a12cdddf0f835c47d97c73a52de.1557645255.3dc4d0569c40881605b6d9150959dcf2.230x140_49193.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190425/a8aabd0a43279c1d6a3d33c3d2838940.1556188684.cf47485a3a268f34ad5b91ec6386b6ec.685x385_76584.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190513/a8f73a12cdddf0f835c47d97c73a52de.1557736881.19afb1c512242c0cd86c12bf75f1acd9.230x140_44194.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190514/a3b9ea2b13e119799a1bba93dc9be42b.1557829919.7ef83bb5fa9cf3d34e6c0fc464f7ee26.686x385_82917.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190514/a3b9ea2b13e119799a1bba93dc9be42b.1557802003.19d871895b05998b06aa37cb486de23f.686x385_95015.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190510/a8f73a12cdddf0f835c47d97c73a52de.1557500750.324430425108a7a1e3a325b258e4df32.230x140_13223.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/0d82f381b3cf063206eaad4e5c42fe72.1557251097.891fc817d4ba1f6bfea910e0ee46ea99.230x140_15152.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190512/0d82f381b3cf063206eaad4e5c42fe72.1557638626.ee4c28cd5bfdfdbd0f163c27c9d9083e.230x140_19057.png',
      'http://itea-cdn.qq.com/file/tgl/20190511/d78ef4211859f8aeb942bf930b0ac95e.1557562733.47a8473d6ec01f2eec2911fbbcd2d970.750x422_40971.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190511/a8f73a12cdddf0f835c47d97c73a52de.1557570560.dfffccdf29ad111b80643e5cf06566c1.230x140_29979.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/aed1dfbc31703955e64806b799b67645.1557295443.c01a0a78f0dfaa28aa80a553c48305cf.230x140_40084.jpg',
      'http://shp.qpic.cn/cfwebcap/0/384fd46938ef228360c48a7392837bc1/0/?width=230&height=140',
      'http://itea-cdn.qq.com/file/tgl/20190510/7e55c9c77a02ef6912881dea124e0e7c.1557457405.100322eae56c9789e6cc8be97559403d.686x385_227671.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190509/3d8f20bcdd5905a086795b99b523b2a1.1557402863.fb2f0fad87775e5c7764ed1d46e9a899.750x422_25248.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/daa9ee6d8d2af2c4495d17df674c3c89.1557288075.fd5eea91e3d124c27c6cb06599ee7921.960x600_219815.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/a8f73a12cdddf0f835c47d97c73a52de.1557303033.946c774529105b724ab64a5aafda3086.230x140_48468.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/a8f73a12cdddf0f835c47d97c73a52de.1557303397.4d3882c8e62024df645c8f82e935c009.230x140_41008.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190507/a8f73a12cdddf0f835c47d97c73a52de.1557230880.498e28320587b4a72ae09d5088ff9bfc.230x140_50978.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190508/a3b9ea2b13e119799a1bba93dc9be42b.1557280342.e28985cd5672b5df208dff766599b1a9.686x385_75502.jpg',
      'http://shp.qpic.cn/cfwebcap/0/ed81e1ee65f5189fcbdcd76882337e1a/0/?width=230&height=140',
      'http://shp.qpic.cn/cfwebcap/0/1714dbad629bf9083c2e6a53e8c116a6/0/?width=230&height=140',
      'http://itea-cdn.qq.com/file/tgl/20190505/60e61086d0ca8a9c0b4bf61f80bbe1a1.1556994796.95aa3f4f2b0761fd584326c41c43b9cd.1680x580_144013.jpg',
      'http://puui.qpic.cn/vpic/0/t0867u0oq05.png/0',
      'http://itea-cdn.qq.com/file/tgl/20190501/a8aabd0a43279c1d6a3d33c3d2838940.1556646981.f19e53a918209ed688bebc2e69a2db76.685x385_73839.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190503/a8f73a12cdddf0f835c47d97c73a52de.1556858092.63ba68a1ff60449fa727df1bb04200a4.230x140_22326.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190430/3d8f20bcdd5905a086795b99b523b2a1.1556631442.7af0225586133fddb816228c728de872.750x422_35468.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190429/a8f73a12cdddf0f835c47d97c73a52de.1556521867.15225a709e28e22864c1c185b843c24b.230x140_49254.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190430/a8aabd0a43279c1d6a3d33c3d2838940.1556623067.cba800ead480110da2cccd6da73776c2.685x385_76434.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190430/19cbb7c106be7fc2874c81098730f257.1556620104.bafeb72714c07d73a801da46ec950fcf.960x540_379849.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190430/d929e8f16c027f4bc25f32e61a9329fd.1556623126.06d0ba031401eddb70ae6f0ec56a2638.184x124_11432.jpg',
      'http://puui.qpic.cn/vpic/0/c0865zw2w2a.png/0',
      'http://itea-cdn.qq.com/file/tgl/20190428/6da9003b743b65f4c0ccd295cc484e57.1556457791.56ae5c1e4e69ea0b38c61db0c775b7a4.230x140_19729.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190425/a8f73a12cdddf0f835c47d97c73a52de.1556180442.2db9e9a07062602b70c2f39a84ae5eea.230x140_43668.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190426/a8f73a12cdddf0f835c47d97c73a52de.1556248645.bf953511b3c5f293b278d25dacf6aa2b.230x140_45697.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190426/a3b9ea2b13e119799a1bba93dc9be42b.1556249213.47e91dd658f59963319a84b1e0d1890b.686x385_89018.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190428/a8f73a12cdddf0f835c47d97c73a52de.1556431555.d3eb05d5080b8603177347ba90818759.230x140_26076.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190426/a8aabd0a43279c1d6a3d33c3d2838940.1556253243.20cd7e0d4e91b5ac2551b66cc703cdfc.685x385_76801.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190426/a8f73a12cdddf0f835c47d97c73a52de.1556248455.22ea2e5362e007a674e88af03c3ac0fb.230x140_44942.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190427/d78ef4211859f8aeb942bf930b0ac95e.1556366465.a2471011f5292ff32a603a26585bd52b.750x422_39314.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190425/d9f1d17a128e6a3a2c047678c6189817.1556197149.1fb7d97a0e275f8d36c58c358e2209d0.900x500_85969.jpg',
      'http://shp.qpic.cn/cfwebcap/0/54e7a3074f589d0d559700ab138e4710/0/?width=230&height=140',
      'http://itea-cdn.qq.com/file/tgl/20190422/a8f73a12cdddf0f835c47d97c73a52de.1555927404.50c3e2d0a7c6f51123dd4818a5d3ad00.230x140_51171.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190425/36d4cb66878da56559f149340155e6ec.1556169500.80bee5f03ca78e0c463a901adc98551c.230x140_18725.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190424/daa9ee6d8d2af2c4495d17df674c3c89.1556091001.a1d84bb066f6b44f0be942a4f070e37d.960x600_168041.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190424/53873bcaec5c3fe56e9d681410452d30.1556084785.d9edb0340a1dc1f297c557be9370a5fe.230x140_43718.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190424/a3b9ea2b13e119799a1bba93dc9be42b.1556095517.7e3003aa21be913163c59229656bff65.686x385_77909.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190418/a8aabd0a43279c1d6a3d33c3d2838940.1555577523.ae4370de1d6abb42ae0fd5d741683d05.685x385_76869.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190422/a3b9ea2b13e119799a1bba93dc9be42b.1555933323.56fdc36e7326e41a779f25dc0099ae9c.686x385_99816.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190422/a8f73a12cdddf0f835c47d97c73a52de.1555917241.97627d28c1eb32b23de633e9a5f8c0cd.230x140_42553.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190422/a8f73a12cdddf0f835c47d97c73a52de.1555912773.c8c8bb707c748f84360dc7847d7dc2a6.230x140_23890.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190418/3d8f20bcdd5905a086795b99b523b2a1.1555588005.b3d9da4e4c53ad3867d293db124e9716.750x422_25296.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190417/5d518828ff221e17893fa8ebbb65a39e.1555495017.652170dc10b044d66b224ee40c682ef6.230x140_33433.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190416/a8f73a12cdddf0f835c47d97c73a52de.1555401512.46c2b6e2bdef1dbe54cf3a98359700dc.230x140_43466.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190411/a8aabd0a43279c1d6a3d33c3d2838940.1554982109.02afa2aed4980b6e38ae8b74637b23f4.685x385_83706.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190412/d9f1d17a128e6a3a2c047678c6189817.1555068194.ae4f4c5f60a1bb9d38a017f5218f43b1.900x500_103144.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190412/a8aabd0a43279c1d6a3d33c3d2838940.1555052064.032368386fc69136766626de69389ff4.685x385_91088.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190411/f3eaecf0ca740bcab3e46556c5364598.1554918355.1caeae1eff74df0bb5f9eedc66e3a605.230x140_20132.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190410/a8f73a12cdddf0f835c47d97c73a52de.1554888798.4f98194c41486772994d373655ea4fab.230x140_28211.jpg',
      'http://shp.qpic.cn/cfwebcap/0/41efa3030d829b99ca88e6d1f5e9bc5a/0/?width=230&height=140',
      'http://shp.qpic.cn/cfwebcap/0/e19abe6bd30bb7ef3dac735596a135e9/0/?width=230&height=140',
      'http://itea-cdn.qq.com/file/tgl/20190409/a3b9ea2b13e119799a1bba93dc9be42b.1554808913.417a0f488378c55e2bc2ebebb2ffa207.686x385_56762.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190402/ep12.1554173411.7d329de9c1cbb0f7163b73248a72103c.900x500_153900.jpg',
      'http://shp.qpic.cn/cfwebcap/0/d23d5d260eba13338b6c123ffe2ac8de/0/?width=230&height=140',
      'http://itea-cdn.qq.com/file/tgl/20190404/daa6300da2d33f7225595a66b7fcd710.1554376211.905dc2a04d59588835556bbd4c2c0376.230x140_73755.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190404/3d8f20bcdd5905a086795b99b523b2a1.1554374515.1cccd47b4f897f672c9832388a73f1e9.750x422_30488.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190404/fad61ead1ed063bce7d4289d513d7fc2.1554371247.1200eee61c4fa816f37c76e6cae3c858.230x140_37916.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190404/c81e728d9d4c2f636f067f89cc14862c.1554351764.44812c7d034d3f70050a80317ba72755.230x140_90945.png',
      'http://itea-cdn.qq.com/file/tgl/20190402/a3b9ea2b13e119799a1bba93dc9be42b.1554192770.aa2935854af890d533796d071bc91de3.686x385_51160.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190401/a8f73a12cdddf0f835c47d97c73a52de.1554089671.1177cb5f62065967feaf426f96775730.230x140_16606.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190331/a8f73a12cdddf0f835c47d97c73a52de.1554002309.1f5a2df35acb51f43133f3e73201a34c.230x140_18954.jpg',
      'http://puui.qpic.cn/vpic/0/n0856lv27u9.png/0',
      'http://itea-cdn.qq.com/file/tgl/20190326/ep11.1553583556.ba2997cc8edbb8776c0ba148be287de7.900x500_160916.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190329/a8f73a12cdddf0f835c47d97c73a52de.1553855495.a28f98a84a45877a0ca8b318c81ffe16.230x140_44984.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190329/edb821f1cc4f895b309b984b8efcad26.1553848366.b9095a2e5a64fe9679a28e995cd55be8.750x320_65291.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190321/a8aabd0a43279c1d6a3d33c3d2838940.1553172697.1f6e484ef77743f90e93553c58f13d71.685x385_89176.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190328/a8aabd0a43279c1d6a3d33c3d2838940.1553757314.2e7bfdf76c157369fc20dcecde3f7d73.685x385_91069.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190328/3d8f20bcdd5905a086795b99b523b2a1.1553768175.96042f4871cb6a5b018a338e3152a77b.750x422_25183.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190327/daa9ee6d8d2af2c4495d17df674c3c89.1553668272.577d5fb3c1ebe8f11604a916e6993197.960x600_286652.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190325/a3b9ea2b13e119799a1bba93dc9be42b.1553520269.11d2f17c851dd2bc07d9765032a60732.686x385_65778.jpg',
      'https://itea-cdn.qq.com/file/tgl/20190329/9f3cb42a249079755f01190dbc1dc3f8.1553842807.34e884000bb8005302c5ece8bffd998e.184x124_38149.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190322/d9f1d17a128e6a3a2c047678c6189817.1553239262.43af50524b7b46e795953e5e3e542e69.900x500_180199.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190321/a8f73a12cdddf0f835c47d97c73a52de.1553165887.6f3d585a0c52ffdf330d075a22ace6f2.230x140_15011.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190321/95a7a5156d5035609b86badfd998b8bf.1553160506.eaa29a4bc8e9aa73fa84948e7ed7825f.230x140_18137.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190320/d4c5c85a3c659b63ece25ee223d4c27f.1553076353.491ae17babc8e0728636fd93b5413c28.230x140_64995.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190320/168daeb5f73943a24f6ad864563031f4.1553080301.270c4a07ec5a3a9b5f0d4cecaef029ed.230x140_42136.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190318/a8f73a12cdddf0f835c47d97c73a52de.1552897348.d523360e526d13a97742cc0de00c5d59.230x140_38840.jpg',
      'http://itea-cdn.qq.com/file/tgl/20190318/c81e728d9d4c2f636f067f89cc14862c.1552889939.6aaba1771f82ae03f03dcc2b917b814c.230x140_44891.jpg',
    ]

    const videoData = rowData.map((el, index) => {
      return {
        category: '5f616e09a2534d5848b51cc4',
        title: el.title,
        img: videoImgData[index + 20],
        playNum:
          el.num.play.indexOf('万') > 0
            ? el.num.play.replace('万', '') * 10000
            : el.num.play * 1,
        danmu:
          el.num.danmu.indexOf('万') > 0
            ? el.num.danmu.replace('万', '') * 10000
            : el.num.danmu * 1,
      }
    })
    // await Video.deleteMany({})
    await Video.insertMany(videoData)
    res.send(videoData)
  })

  app.use(async (err, req, res, next) => {
    res.status(err.statusCode || 500).send({
      message: err.message,
    })
  })
}
